package com.lee.mysql.pojo;

/**
 * 视图
 */
public class DBView {

    /** 视图名称 */
    private String viewName;

    /** 视图sql */
    private String viewDefinition;

    public DBView() {
    }

    public DBView(String viewName, String viewDefinition) {
        this.viewName = viewName;
        this.viewDefinition = viewDefinition;
    }

    public String getViewName() {
        return viewName;
    }

    public void setViewName(String viewName) {
        this.viewName = viewName;
    }

    public String getViewDefinition() {
        return viewDefinition;
    }

    public void setViewDefinition(String viewDefinition) {
        this.viewDefinition = viewDefinition;
    }

    @Override
    public String toString() {
        return "DBView{" +
                "viewName='" + viewName + '\'' +
                ", viewDefinition='" + viewDefinition + '\'' +
                '}';
    }
}
